Function Reference

_SetTime

Sets the current time of the system

#include <Date.au3>
_SetTime($iHour, $iMinute [, $iSecond=0])

 

Parameters

$iHour the hour. Values: 0-23
$iMinute the minute. Values: 0-59
$iSecond Optional: the seconds. Values: 0-59

 

Return Value

Success: 1
Failure: 0
@Error: 0 = No error.
1 = Failure
@extended GetLastError() Error code(s): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp

 

Remarks

If the optional parameter (iSecond) is NOT defined, the function will not change the current value!

 

Related

_SetDate

 

Example


#include <Date.au3>

_SetTime(20,15)     ; Set time to 20:15
_SetTime(20,15,30)  ; Set time to 20:15:30